﻿#pragma once
#include <ImageTask.h>



class ErosionTask : public ImageTask {
private:
	int kernelSize; // 核大小
	int iterations; // 迭代次数

public:
	ErosionTask(int size = 3, int iter = 1) : kernelSize(size), iterations(iter) {}

	void execute(cv::Mat& image) override;

	std::string getName() const override;

	std::unique_ptr<QDialog> getConfigUI() override;
};
